<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

<table border="1">
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>头像</th>
        <th>年龄</th>
        <th>地址</th>
        <th>职业</th>
        <th>操作</th>

    </tr>

    <?php
    $server="localhost";
    $name="root";
    $pwd="root";
    $db="aynak";

    $con=mysqli_connect($server,$name,$pwd,$db);

    if ($con){
        $sql="select * from aynakk";
        $run=mysqli_query($con,$sql);
        if(mysqli_num_rows($run)>0){
            while ($kur=mysqli_fetch_assoc($run)){
                $id = $kur['id'];
                echo "<tr>";
                echo "<td>".$kur['id']."</td>";
                echo "<td>".$kur['name']."</td>";
                echo "<td><imj style='width:50px;border-radius:40%'src='".$kur['imj']."' alt=''></td>";
                echo "<td>".$kur['age']."</td>";
                echo "<td>".$kur['ads']."</td>";
                echo "<td>".$kur['kaspi']."</td>";
                echo "<td><a href='arzu.php?id=$id'>删除</a></td>";
                echo "</tr>";
            }
        }
        mysqli_close($con);
    }else{
        echo "未连接数据库，错误内容：".mysqli_connect_error();
    }



    ?>
</table>
</body>
</html>